//
//  SearchShopCell.m
//  BusinessMarket
//
//  Created by Michael Li on 2018/12/25.
//  Copyright © 2018年 Michael Li. All rights reserved.
//

#import "SearchShopCell.h"
#import "ShopSubModel.h"
@interface SearchShopCell()
@property (weak, nonatomic) IBOutlet UIImageView *iv;
@property (weak, nonatomic) IBOutlet UILabel *titleL;

@end
static NSString *identifier = @"SearchShopCell";
@implementation SearchShopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
+(instancetype)cellNibWithTableView:(UITableView *)tableView
{
    SearchShopCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell) {
        [tableView registerNib:[UINib nibWithNibName:@"SearchShopCell" bundle:nil] forCellReuseIdentifier:identifier];
        cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}
- (void)setModel:(ShopSubModel *)model
{
    _model = model;
    [self.iv sd_setImageWithURL:[NSURL URLWithString:model.logo] placeholderImage:[UIImage imageNamed:@"noDataImg"]];
    self.titleL.text = model.title;
}

@end
